[PATCH] output/jsonbuilder: helper function SCJbSetPrintAsciiString
authorPhilippe Antoine <pantoine@oisf.net>
Thu, 30 Oct 2025 10:18:15 +0000 (11:18 +0100)
committerAndreas Dolp <dev@andreas-dolp.de>
Wed, 10 Dec 2025 19:12:20 +0000 (20:12 +0100)
commit026cf5a2a1d660251e388dd5fa3491c72315adb0
treed7f9db49626989af59f0ac6cef8aabc874299e7e
parentf858b4ace56521e339f924310c2623f325cd35a6
[PATCH] output/jsonbuilder: helper function SCJbSetPrintAsciiString

To replace C PrintStringsToBuffer and avoid a stack alloc
+ copy

Ticket: 8004
(cherry picked from commit 7447651fa0956ff4ce55283a51b4a9494ec8cc6a)

Origin: upstream, https://github.com/OISF/suricata/commit/5abf9b81e78476f49ab074f3a74b5840747cd069.patch
Bug: https://redmine.openinfosecfoundation.org/issues/8004
Subject: Upstream fix for CVE-2025-64331

Gbp-Pq: Name CVE-2025-64331.patch
rust/dist/rust-bindings.h
rust/src/jsonbuilder.rs
src/output-json-alert.c
src/output-json-frame.c
src/output-json-http.c
src/output-json.c